<?php

class TestController extends AppController {
	var $uses = array('Item');
	var $helpers = array('Barcode','Qrcode','Excel');
	var $components=array('Search');
	function index() {
		$this->set("test","ayam");
	}

	function excel() {

		$data = "87221821098sa08dsasdsdsd";
		$this->set("var",$data);
	}

	function search() {
		$item = $this->Item->findAllById(2);
		pr($item[0]['Item']['item_name']);
		exit;
	}
}